//
//  CMDBGenderType.swift
//  CMDB
//
//  Created by 王磊 on 17/4/5.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

enum CMDBGenderType: Int {
    
    case Mail = 1 //男
    
    case Femail = 2 // 女
    
    case UnKnown = 0 // 未知
    init(string: String) {
        
        switch string {
        case "1":
            self = .Mail
        case "2":
            self = .Femail
        default:
            self = .UnKnown
        }
    }
}
